package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingProject;
import com.zzyl.vo.NursingProjectVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface NursingProjectMapper {
    int insert(NursingProject nursingProject);  // 插入

    int update(NursingProject nursingProject);  // 更新

    int deleteById(Long id);  // 通过id删除

    NursingProject getById(Long id);  // 通过id获取

    List<NursingProject> getAll();  // 获取所有

    Page<NursingProjectVo> getByPage(@Param("name") String name,
                                     @Param("status") Integer status);  // 分页条件查询
}
